/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package air.pagehandler;

import air.eb.Trip;
import air.sb.AirRemote;
import javax.naming.*;

/**
 *
 * @author mrxyz
 */
public class FindTripToBeDeletedBean {
    AirRemote AB = lookupAirBean();

    public void findTripToBeDeleted(int tripNr, String pNr){
        //AB.findTripToBeDeleted(tripNr, pNr);
    }

    private AirRemote lookupAirBean(){
        try {
            Context c = new InitialContext();
            return (AirRemote) c.lookup("java:comp/env/AirBean");
        } catch (NamingException ne) {
            java.util.logging.Logger.getLogger(getClass().getName()).log(java.util.logging.Level.SEVERE, "exception caught", ne);
            throw new RuntimeException(ne);
        }
    }

}
